package com.wx.web.controller.banner;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;







import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.ui.Model;
import org.springframework.util.IdGenerator;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.web.bind.annotation.RequestParam;

import com.eachonline.core.JsonResult;
import com.wx.business.course.IxbBannerService;
import com.wx.model.IxbBanner;
import com.wx.model.IxbBannerExample;



/**
 * banner管理控制器
 *
 * @author fengshuonan
 * @Date 2018-08-08 14:35:46
 */
@Controller
@RequestMapping("/ixbBanner")
public class IxbBannerController  {


    @Autowired
    private IxbBannerService ixbBannerService;

   
    
    /**
     * 获取h5 banner管理列表
     */
    @RequestMapping(value = "/h5/list")
    @ResponseBody
    public JsonResult h5list(String condition) {
    	IxbBannerExample bannerExample =new IxbBannerExample();
    	
    	bannerExample.createCriteria().andIsUseEqualTo("1");
    	List<IxbBanner>  listMap=ixbBannerService.selectByExample(bannerExample);
        return new JsonResult(true,listMap);
    }
}
